package com.common.platform.base.config.database;

import com.sun.org.apache.regexp.internal.RE;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.util.List;

/**
 * 数据范围
 */
public class DataScope {

    /**
     * 限制范围的字段名称
     */
    private  String scopName="deptId";

    /**
     * 具体的数据范围
     */
    private List<Long> deptIdes;

    public DataScope(){

    }

    private DataScope(List<Long> deptIds){
        this.deptIdes=deptIds;
    }
    public DataScope(String scopName,List<Long> deptIdes){
        this.scopName=scopName;
        this.deptIdes=deptIdes;
    }

    public void setScopName(String scopName){
        this.scopName=scopName;
    }

    public String getScopName(){
        return this.scopName;
    }
    public void setDeptIdes(List<Long> deptIdes){
        this.deptIdes=deptIdes;
    }
    public List<Long> getDeptIdes(){
        return this.deptIdes;
    }
}
